export default async function({ energy, current }) {
  await new Promise(resolve => setTimeout(resolve, 2000));
  console.log(`[KXD] X射线设置: ${energy} keV ${current} mA`);
  return { energy, current };
}

export const meta = {
  name: "设置X射线",
  parameters: [
    {
      name: "energy",
      type: "number",
      defaultValue: 20,
      unit: "keV",
      description: "X射线能量"
    },
    {
      name: "current",
      type: "number",
      defaultValue: 10,
      unit: "mA",
      description: "管电流"
    }
  ]
};